package cn.growthgate.fgo.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.mapper.BaseMapper;

import cn.growthgate.fgo.entity.User;
import cn.growthgate.fgo.entity.UserRole;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author GrowthGate
 * @since 2019-01-20
 */
public interface UserMapper extends BaseMapper<User> {

	@Select("select * from t_sys_user_role where userId = #{id}")
	public List<UserRole> getRoles(User user);

}
